{% extends 'base.html' %}
{% block content%}

    <div style="width: 50%;margin:auto auto;margin-top: 20px">
    <h3>编辑实验室</h3>
    <form action="" method="post">
    {% csrf_token %}
    <p>
    <label class="col-sm-2 control-label" for="ds_lname">{{ form_obj.lname.label }}</label>
    {{ form_obj.lname }}
         <span>{{ form_obj.lname.errors }}</span>
    </p>
    <p>
    <label class="col-sm-2 control-label" for="ds_floor">{{ form_obj.floor.label }}</label>
    {{ form_obj.floor }}
         <span>{{ form_obj.floor.errors }}</span>
    </p>
    <p>
    <label class="col-sm-2 control-label" for="ds_room_num">{{ form_obj.room_num.label }}</label>
    {{ form_obj.room_num }}
         <span>{{ form_obj.room_num.errors }}</span>
    </p>
    <p>
    <label class="col-sm-2 control-label" for="ds_uname">{{ form_obj.uname.label }}</label>
    {{ form_obj.uname }}
         <span>{{ form_obj.uname.errors }}</span>

    </p>
    <p>
    <label class="col-sm-2 control-label" for="ds_user">{{ form_obj.user.label }}</label>
    {{ form_obj.user }}
        <span>{{ form_obj.user.errors }}</span>
    </p>
    <button class="btn btn-default" style="background: white;width: 100%">提交</button>
    </form>
    </div>


{% endblock %}